'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/api/newHouse', controller.home.newHouse);  //渲染新房数据
  router.post('/api/login', controller.home.login);  //登录
  router.post('/api/register', controller.home.register)  //注册
  router.post('/api/newDetail', controller.home.Detail)  //新房详情页
  router.post('/api/newScreening', controller.home.newScreening)  //新房数据筛选
  router.get('/api/messageList', controller.home.messageList)  //消息列表渲染
  router.post('/api/messageDel', controller.home.messageDel);  //消息列表删除
  router.get('/api/abulkList', controller.home.abulkList);  //团购列表
  router.post('/api/abulkDetail', controller.home.abulkDetail)  //团购详情页
  router.get('/api/solicitingList', controller.home.solicitingList);  //求租列表
  router.get('/api/askBuyList', controller.home.askBuyList);  //求租列表
  router.get('/api/rankingList', controller.home.rankingList);  //排行榜列表
  router.get('/api/liveList', controller.home.liveList);  //直播列表
  router.get('/api/circleList', controller.home.circleList);  //楼市圈列表

};
